-- GENERATED SPELL FOR [Wrathfin Myrmidon] --


function spell0_17726(pUnit, Event) --@Coral Cut,n/a--
pUnit:FullCastSpellOnTarget(31410,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17726', 15000, 1)
end

function spell1_17726(pUnit, Event) --@Coral Cut,n/a--
pUnit:FullCastSpellOnTarget(37973,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17726', 15000, 1)
end

function Sorts_17726(pUnit, Event)
local choix_sorts_17726 = math.random(0, 1)
if choix_sorts_17726 == 0 then
pUnit:RegisterEvent('spell0_17726', 1, 1)
end
if choix_sorts_17726 == 1 then
pUnit:RegisterEvent('spell1_17726', 1, 1)
end
end

function mob17726_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17726', math.random(1500, 3000), 1)
end

function mob17726_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17726_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17726_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17726, 1, 'mob17726_Action')
RegisterUnitEvent(17726, 2, 'mob17726_Leave')
RegisterUnitEvent(17726, 3, 'mob17726_Kill')
RegisterUnitEvent(17726, 4, 'mob17726_Die')
